<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test10</title>
</head>
<body>
    <script type="text/javascript">
        var a = 60;
        var b = 38;
        console.log("成绩a：" + (a >= 60 ? "及格" : "不及格"));
        console.log("成绩b：" + (b >= 60 ? "及格" : "不及格"));
    </script>
</body>
</html>